var Router = require('koa-router');

var user = new Router();

user.post('/login', (ctx, next) => {
    // ctx.router available
    console.log('请求登录！');
    console.log(ctx.request.body);
    ctx.body = 'log success!';
});

exports.user = user;